<table>
	<tr>
		<td>
			<a class="button" href="<?php echo $this->baseUrl() ?>/cpservices/list/id/<?php echo $this->prod_id ?>/status/0">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/plus_16.png);" class="inb">Nowe</div>
			</a>
		</td>
		<td>
			<a class="button" href="<?php echo $this->baseUrl() ?>/cpservices/list/id/<?php echo $this->prod_id ?>/status/1">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/plus_16.png);" class="inb">W trakcie</div>
			</a>
		</td>
		<td>
			<a class="button" href="<?php echo $this->baseUrl() ?>/cpservices/list/id/<?php echo $this->prod_id ?>/status/2">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/plus_16.png);" class="inb">Zakończone</div>
			</a>
		</td>
	</tr>
</table>

<div class="bglist">
	<div class="bglistq">
		<table cellspacing="1" cellpadding="6" class="tlist">
			<tr>
				<th>Id</th>
				<th>Email</th>
				<th>Kod</th>
				<th>Data opłacenia</th>
				<th>Nazwa produktu</th>
				<th>Dane</th>
				<th>Komentarze</th>
				<th>Akcje</th>
			</tr>
			<?php foreach( $this->list as $item ) { ?>
			<tr>
				<td><?php echo $item['ser_id'] ?></td>
				<td><?php echo $item['email'] ?></td>
				<td><?php echo md5($item['id']) ?></td>
				<td><?php echo $item['date_paid'] ?></td>
				<td><?php echo $item['title'] ?></td>
				<td><?php echo $item['data'] ?></td>
				<td><?php echo $item['comment'] ?></td>
				<td>
					<a href="<?php echo $this->baseUrl() ?>/cpservices/status/id/<?php echo $item['ser_id'] ?>/status/<?php echo $this->status?>/pid/<?php echo $this->prod_id?>" class="list">Status</a>
					<a href="<?php echo $this->baseUrl() ?>/cpservices/add/id/<?php echo $item['ser_id'] ?>/status/<?php echo $this->status?>/pid/<?php echo $this->prod_id?>" class="edit">Edit</a>
				</td>
			</tr>
			<?php } ?>
		</table>
	</div>
</div>
<?php  echo $this->render('global/pager.phtml'); ?>